package com.lagou.phone;

public class NewPhone extends OldPhone implements IPlay {

    private String game;

    public String getGame() {
        return game;
    }

    public void setGame(String game) {
        this.game = game;
    }

    public NewPhone(String brand, String model, String no, String game) {
        super(brand, model, no);
        setGame(game);
    }

    @Override
    public void playGame() {
        System.out.println("我发现一个特别好玩的游戏,这个游戏的名字叫: " + game);
    }
}
